﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="billList.aspx.cs" Inherits="WebApp.admin.bill.billList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
       <link href="../css/skin.css" rel="stylesheet" type="text/css" />
       <script language="javascript" type="text/javascript" src="/My97DatePicker/WdatePicker.js" ></script>
</head>
<body>
  
             
                  <input id="btnAddBill" type="button" class="formButton" value="票据添加" onclick="location.href='bill.aspx?ot=ad';"  />
                  <form id="form1" runat="server">

    <table width="100%" border="0" cellpadding="0" cellspacing="4" bgcolor="#FAFBFC" style=" border-bottom:1px solid #3CB6E5;" class="img">
    <tr>
      <td width="2%"><img height="22" alt="SEARCH" src="../images/icon_search.gif" width="26" border="0" /></td>
      <td width="4%">发票号</td>
      <td width="6%"><input size="10" name="txtBillCode" id="txtBillCode" runat="server" /></td>
         <td width="6%" align="left"><select name="states" id="states" runat="server">
          <option selected="selected" value="">发票状态</option>
        <option value="未开票">未开票</option>
        <option value="已开票">已开票</option>
      </select></td>
       <td width="6%" align="left"><select name="billClass" id="billClass" runat="server">
          <option selected="selected" value="">发票类别</option>
        <option value="普通发票">普通发票</option>
        <option value="增值税发票">增值税发票</option>
      </select></td>
       <td width="6%">公司名称</td>
      <td width="14%"  align="left">
         <asp:DropDownList ID="ddlCompanyList" runat="server"></asp:DropDownList>
      </td>
      <td width="8%">申请开票日期从</td>
      <td width="6%" align="left">
           <input name="txtSartTime" type="text" id="txtSartTime" style="behavior:url('../../LWDP2.HTC'); width: 80px;" runat="server" />
      </td>
      <td width="2%">至</td>
      <td width="6%" align="left">
        <input name="txtEndTime" type="text" id="txtEndTime" style="behavior:url('../../LWDP2.HTC'); width: 80px;" runat="server" />
      </td>
      <td width="8%" align="left">
            <asp:ImageButton ID="ibtnSearch" ImageUrl="../images/button04.gif" runat="server" OnClick="ibtnSearch_Click" />
      </td>
   
    </tr>
  </table>
  <div id="divMessage" runat="server" style=" width:100%; text-align:left;">
  </div>
  
    <div class="maincontent">
<asp:GridView ID="GridView1" runat="server" Width="100%" CellPadding="4" 
        ForeColor="#333333" DataKeyNames="id" AutoGenerateColumns="False" 
        AllowPaging="True" pagesize="100" BorderStyle="Solid" BorderWidth="1px" onrowdatabound="GridView1_RowDataBound" 
      ShowFooter="false" EmptyDataText="没有数据记录！！" >
        <Columns>
           <asp:BoundField HeaderText="发票号" DataField="ID" sortexpression="ID" />
        <asp:BoundField HeaderText="开票抬头" DataField="TitleName" sortexpression="TitleName" />
        
        <asp:BoundField HeaderText="发票类型" DataField="ClassName" sortexpression="ClassName" />
           <asp:BoundField HeaderText="金额(元)" DataField="Money" sortexpression="Money" DataFormatString={0:f} />
        
          <asp:BoundField HeaderText="发票内容" DataField="BillTypeName" sortexpression="BillTypeName" />
          <asp:BoundField HeaderText="状态" DataField="States" sortexpression="States" />
          <asp:BoundField HeaderText="经销商" DataField="CompanyName" sortexpression="CompanyName" />
         <asp:BoundField HeaderText="添加时间" DataField="AddBillTime" sortexpression="AddBillTime" DataFormatString="{0:yyyy-MM-dd hh:mm:ss}" />
            <asp:BoundField HeaderText="处理时间" DataField="ProcessBillTime" sortexpression="ProcessBillTime" DataFormatString="{0:yyyy-MM-dd hh:mm:ss}" />
       
          <asp:BoundField HeaderText="处理备注" DataField="ProcessRemark" sortexpression="ProcessRemark" />
         <asp:BoundField HeaderText="操作员" DataField="AdminUser" sortexpression="AdminUser" />
        <asp:TemplateField ShowHeader="False" HeaderText="操作">
             <ItemTemplate>
               <a href="<%= ProcessPage %>.aspx?id=<%# Eval("id") %>&isprocess=<%# Eval("States").ToString() == "已开票" ? "1" : "0" %>" title="编辑">[编辑]</a>
             </ItemTemplate>
        </asp:TemplateField>
        </Columns>
             <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />             
             <PagerStyle BackColor="White" ForeColor="#333333" HorizontalAlign="Center" Font-Bold="True" Font-Size=30px />
             <HeaderStyle BackColor="#E2E7EB" Font-Bold="True" ForeColor="Black" HorizontalAlign="Left" />
             <AlternatingRowStyle BackColor="White" />
             <PagerSettings Visible="False" />
        </asp:GridView>
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr>
        
         <td height="25" align="right" bgcolor="#E9ECEF"><asp:Label ID="LblRecordCount" runat="server"></asp:Label>
            <asp:Label ID="LblCurrentIndex" runat="server"></asp:Label>
            <asp:Label ID="LblPageCount" runat="server"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:LinkButton ID="btnFirst" CommandArgument="first" OnClick="PagerButtonClick" runat="server">首 页</asp:LinkButton> 
            <asp:LinkButton ID="btnPrev" CommandArgument="prev" OnClick="PagerButtonClick" runat="server">上一页</asp:LinkButton> 
            <asp:LinkButton ID="btnNext" CommandArgument="next" OnClick="PagerButtonClick" runat="server">下一页</asp:LinkButton> 
            <asp:LinkButton ID="btnLast" CommandArgument="last" OnClick="PagerButtonClick" runat="server">尾 页</asp:LinkButton> 
             跳转到第<asp:DropDownList ID="ddlCurrentPage" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"> </asp:DropDownList>页&nbsp;
         </td>
       </tr>
    </table>

      </form>
</div>

   
</body>
</html>
